package com.huoyun.userAdmin.dao;

import java.util.List;

import com.huoyun.base.dao.BaseDaoImpl;
import com.huoyun.userAdmin.bean.CheckRealname;
import com.huoyun.userAdmin.dao.evt.GetAllCheckRealnameEvt;

public class CheckRealnameDaoImpl extends BaseDaoImpl<CheckRealname> implements CheckRealnameDao
{

	@Override
	public void saveCheckRealname(CheckRealname checkRealname) 
	{
		this.sqlSessionTemplate.insert("com.huoyun.userAdmin.dao.CheckRealnameDaoMapper.saveCheckRealname", checkRealname);
	}

	@Override
	public CheckRealname getCheckRealnameByUserId(long userId) 
	{
		return this.sqlSessionTemplate.selectOne("com.huoyun.userAdmin.dao.CheckRealnameDaoMapper.getCheckRealnameByUserId", userId);
	}

	@Override
	public void update(CheckRealname checkRealname) 
	{
		this.sqlSessionTemplate.update("com.huoyun.userAdmin.dao.CheckRealnameDaoMapper.update", checkRealname);
	}

	@Override
	public void delete(long id) 
	{
		this.sqlSessionTemplate.delete("com.huoyun.userAdmin.dao.CheckRealnameDaoMapper.datele", id);
	}

	@Override
	public List<CheckRealname> getAllCheckRealname(GetAllCheckRealnameEvt evt) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("com.huoyun.userAdmin.dao.CheckRealnameDaoMapper.getAllCheckRealname",evt);
	}

}
